SPRITE VISIBLE

This command will return a one if the specified sprite is visible, otherwise zero is returned.

  Syntax
Return Integer=SPRITE VISIBLE(Sprite Number)
  Parameters
Sprite Number
Integer
The sprite number to check on

  Returns

This command will return a one if the specified sprite is visible, otherwise zero is returned

  Description

The parameter should be specified using an integer value.

  Example Code
load image "man.bmp",1
cls
sprite 1,100,100,1
if sprite visible(1)=1 then print "sprite is on screen"
do
loop
end
  See also

SPRITE Commands Menu
Index